// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import iview from 'iview'
import header from './page/layout/header'
import footer from './page/layout/footer'
import 'iview/src/styles/index.less'
import http from './util/http'

Vue.prototype.$http = http

Vue.config.productionTip = false
Vue.component('my-header', header)
Vue.component('my-footer', footer)

Vue.use(iview)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
})
